package cn.apienvrypt.config;

import java.util.List;
import javax.annotation.Resource;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import cn.apienvrypt.interceptor.EncParamHandler;

/**
 * @author lfj
 */
@Configuration
public class ConfigAdapter implements WebMvcConfigurer {

	@Resource
	private EncParamHandler encParamHandler;

	@Override
	public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
		argumentResolvers.add(encParamHandler);
	}
}